<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/9/30
  Time: 13:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<head>
    <title>Title</title>

    <link rel="stylesheet" href="<%=request.getContextPath()%>/plugins/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/head.css">

    <style>
        #bgs {
            padding: 25px;

            background-color: rgba(226, 196, 196, 0.2);
            margin-top: 30px;

            box-shadow: -5px -5px 10px rgb(246, 246, 246);
        }

        h3 {
            color: rgb(46, 85, 2);

            font-weight: bold;
        }

        label {
            color: rgb(46, 85, 2);
            font-size: 15px;
        }

        #liucheng div p {
            font-size: 10px;
            text-align: center;
            margin-top: 30%;
            color: rgb(80, 180, 0);
            font-weight: bold;

        }

        #liucheng {
            background-color: rgb(245, 245, 245, 0.5);
        }

        #liucheng div {
            padding-top: 20px;
        }
    </style>
</head>
<body>
<%@ include file="../nav/nav.jsp" %>


<div class="container">
    <div class="row">
        <div class="col-md-12" id="liucheng">
            <div class="col-md-2"></div>
            <div class="col-md-1"><img src="<%=request.getContextPath()%>/imgs/填写信息小图标.png" alt=""><br>
                <p>填写挂号信息</p>
            </div>
            <div class="col-md-1" style="margin-right: 2.5%; margin-top: 2%"><img
                    src="<%=request.getContextPath()%>/imgs/连接线.png" alt="">
            </div>
            <div class="col-md-1"><img src="<%=request.getContextPath()%>/imgs/钱包小图标.png" alt=""><br>
                <p>在线支付</p>
            </div>
            <div class="col-md-1" style="margin-right: 2.5%; margin-top: 2%"><img
                    src="<%=request.getContextPath()%>/imgs/连接线.png" alt="">
            </div>
            <div class="col-md-1"><img src="<%=request.getContextPath()%>/imgs/日期小图标.png" alt=""><br>
                <p>等待就医</p>
            </div>
            <div class="col-md-1" style="margin-right: 2.5%; margin-top: 2%"><img src="../imgs/连接线.png" alt="">
            </div>
            <div class="col-md-1"><img src="<%=request.getContextPath()%>/imgs/医院小图标.png"
                                       style="height:80px; width: 70px;" alt="">
                <br>
                <p>医院快速就医</p>
            </div>
        </div>
        <div class="col-md-4" id="bgs" style="background-color:rgb(245, 245, 245,0.7) ">
            <div class="caption" style="font-size: 20px;margin-bottom: 10px;margin-top: 5px;">患者实名制挂号与注册建档须知</div>
            <div class="text">
                <p>
                    为保护病人权益，维护医院正常医疗秩序，请各位患友及家属自觉遵守病人实名注册建档、挂号、就诊规定。
                </p>
                <p>
                    一、办理注册建档时，请选择以下方式之一提供病人基本信息：
                </p>
                <p>
                    1）出示病人本人的身份证原件（第2代身份证为佳）
                </p>
                <p>
                    2）有效身份证明原件（户口本/驾驶证/老年证等）
                </p>
                <p>
                    3）北京市医保卡
                </p>
                <p>
                    二、患者凭身份证或就医凭证挂号，必要时需同时出示病人有效身份证明。未经医师签名同意，不退号，不更名。
                </p>
                <p>
                    三、每次就医时请随身携带身份证或就医凭证，妥善保管。
                </p>
                <p>
                    四、严禁使用他人就医凭证挂号、就诊，一经发现就医凭证基本信息与患者真实身份不符，医院有权终止接诊，由此产生的一切不良后果由患者及家属自行承担。
                </p>
                <p>
                    五、谨防“号贩子”冒用他人身份证、就医凭证进行非法倒号。
                </p>
                <p>
                    <br/>
                </p>
            </div>
            <div class="col-md-10">
                <div class="caption" style="font-size: 20px;margin-bottom: 10px">医疗服务费以及报销比例</div>
                <img src="<%=request.getContextPath()%>/imgs/报销比列图.png" style="width: 130%;padding-left: 0px;">
            </div>
        </div>
        <div class="col-md-8" id="bgs">
            <div class=" nav navbar-nav navbar-right">
                <h4><a href="<%=request.getContextPath()%>/man">不了解挂哪个科室?点这里</a></h4>
            </div>
            <div style="margin-top: 70px;margin-bottom: 50px;">
                <h3>患者信息&nbsp&nbsp<img src="<%=request.getContextPath()%>/imgs/下-箭头.png" style="height: 20px;"></h3>
            </div>
            <input type="hidden" id="ddd" value="${did}">
            <input type="hidden" id="fff" value="${fid}">
            <input type="hidden" id="sss" value="${sid}">
            <input type="hidden" id="ttt" value="${tid}">
            <input type="hidden" id="flag" value="${flag}">


            <form class="form-horizontal" role="form" action="<%=request.getContextPath()%>/alipay/web" id="f">
                <div id="pat">

                </div>
                <div style="margin-bottom: 50px;margin-top: 70px;">
                    <h3>医生信息&nbsp&nbsp<img src="<%=request.getContextPath()%>/imgs/下-箭头.png" style="height: 20px;"></h3>
                </div>
                <div id="content">
                </div>
            </form>
        </div>
    </div>
</div>
<%@ include file="../nav/foot.jsp" %>
<script src="<%=request.getContextPath()%>/plugins/jquery/jquery.min.js"></script>
<script src="<%=request.getContextPath()%>/plugins/bootstrap/js/bootstrap.js"></script>
<script src="<%=request.getContextPath()%>/js/reg/regOffice.js"></script>

<script>
    $(function () {
        $("#pat").load("/treatment/reg/showPat");
    })
</script>

<script>
    $(function () {
        var fid = document.getElementById("fff").value;
        var sid = document.getElementById("sss").value;
        var did = document.getElementById("ddd").value;
        var tid = document.getElementById("ttt").value;
        $("#content").load("/treatment/reg/into", {
            fid: fid,
            sid: sid,
            did: did,
            tid: tid
        });
    });
</script>
<script>
    f.onsubmit = function () {
        var tel = document.getElementById("tel").value;
        var mobilereg1 = /^1[3|5|6|7|8|9][0-9]{9}$/;
        var span = document.getElementById("checktel");
        if (mobilereg1.test(tel)) {
            var fdep = document.getElementById("first").value;
            if (fdep != -1) {
                var sdep = document.getElementById("second").value;

                if (sdep != -1) {
                    var doc = document.getElementById("doctor").value;

                    if (doc != -1) {

                        var t = document.getElementById("time").value;

                        if (t != -1) {
                            alert("前往支付...");
                            return true;
                        }
                        var spanFour = document.getElementById("spanFour");
                        spanFour.innerHTML = "*请选择时间";
                        alert("请选择时间");
                        return false;

                    }
                    var spanThree = document.getElementById("spanThree");
                    spanThree.innerHTML = "*请选择医生";
                    alert("请选择医生");
                    return false;
                }
                var spanTwo = document.getElementById("spanTwo");
                spanTwo.innerHTML = "*请选择二级科室";
                alert("请选择二级科室");

                return false;
            }
            var spanOne = document.getElementById("spanOne");
            spanOne.innerHTML = "*请选择一级科室";
            alert("请选择一级科室");
            return false;
        }
        span.innerHTML = "*手机号格式不正确";
        alert("请重新输入手机号");
        return false;

    }
</script>

<script type="text/javascript">
    $(document).ready(function () {
        var flag = $('#flag').val();
        if (flag == 1) {
            alert("你已经预约这位医生！");
            $('#flag').val('');
        }
        if (flag == 2) {
            alert("当前医生当前时间段病人已满！");
            $('#flag').val('');
        }
        })
</script>


</body>

